package cn.yunhe.dao;


import cn.yunhe.entity.KnowledgePoint;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;
@Repository
public interface KnowledgePointDao {


    /**
     * 查询所有
     * @param map
     * @return
     */
    List<KnowledgePoint> getKnowledgePointListByPage(Map<String, Object> map);


    /**
     * 总条数
     * @param map
     * @return
     */
    int getKnowledgePointListCountByPage(Map<String, Object> map);

    /**
     * 增
     * @param knowledgePoint
     */
    int addKnowledgePoint(KnowledgePoint knowledgePoint);

    /**
     * 删
     * @param knowledgePoint
     */

    int delKnowledgePoint(KnowledgePoint knowledgePoint);

    /**
     * 改
     * @param knowledgePoint
     */
    int updKnowledgePoint(KnowledgePoint knowledgePoint);

    /**
     * 根据id查标签
     * @param knowledgePoint
     * @return
     */
    KnowledgePoint getKnowledgePointById(KnowledgePoint knowledgePoint);

}